﻿using System;
using System.Collections.Generic;
using YiCheap.Core.Domain.Users;

namespace YiCheap.Core.Domain.ShoppingLists
{
    public class ShoppingList
    {
        public virtual User Owner { get; set; }

        public virtual DateTime CreatedDate { get; set; }

       

        public virtual decimal OldPrice { get; set; }

        public virtual decimal OptPrice { get; set; }


        private ICollection<ShoppingProduct> _products { get; set; }


        public virtual ICollection<ShoppingProduct> Products
        {
            get { return _products ?? (_products = new List<ShoppingProduct>()); }
            protected set { _products = value; }
        }

    }
}